import wtforms
from django.contrib.messages.context_processors import messages
from flask_wtf import FlaskForm
from wtforms.validators import Length,EqualTo
from models import *
from exit import db


class LoginForm(wtforms.Form):
    cardID=wtforms.StringField(validators=[Length(min=6,max=16,message="卡号格式错误！")])
    passwd=wtforms.StringField(validators=[Length(min=6,max=6,message="密码格式错误！")])